import request from '@/utils/request'

// 查询角色列表
export function listRole(data) {
  return request({
    url: '/console/system/role/getRoleList',
    method: 'post',
    data: data
  })
}

// 查询角色详细
export function getRole(data) {
  return request({
    url: '/console/system/role/detail',
    method: 'post',
    data: data
  })
}

// 新增角色
export function addRole(data) {
  return request({
    url: '/console/system/role/addRole',
    method: 'post',
    data: data
  })
}

// 修改角色
export function updateRole(data) {
  return request({
    url: '/console/system/role/updateRole',
    method: 'post',
    data: data
  })
}

// 删除角色
export function delRole(data) {
  return request({
    url: '/console/system/role/deleteRole',
    method: 'post',
    data: data
  })
}
